﻿#include "GangiaAlgoFrame.h"

BEGIN_EVENT_TABLE( GangiaAlgoFrame, wxFrame )
EVT_BUTTON(wxID_UP,GangiaAlgoFrame::Up)
EVT_BUTTON(wxID_DOWN,GangiaAlgoFrame::Down)
EVT_BUTTON(wxID_LEFT,GangiaAlgoFrame::Left)
EVT_BUTTON(wxID_RIGHT,GangiaAlgoFrame::Right)
EVT_BUTTON(wxID_CENTER,GangiaAlgoFrame::Center)
END_EVENT_TABLE()

GangiaAlgoFrame::GangiaAlgoFrame( wxWindow* parent ):AlgoFrame( parent )
{
	Class =NONE;
}

void GangiaAlgoFrame::GetFeedback(float *Vect)
{
	Vect[0] = 100 - LeftSlide->GetValue();
	Vect[1] = 100 - RightSlide->GetValue();
	Vect[2] = UpSlide->GetValue();
	Vect[3] = DownSlide->GetValue();
}
